#include "RenzoMustHaveGL.h"
#include "RenzoPrecompiled.h"
#include "RenzodererGLPlugin.h"
#include "RenzoRenderSystemGL.h"
#include "RenzoTextureManagerGL.h"

namespace Renzo {
RenzodererGLPlugin::RenzodererGLPlugin(void)
{
}

RenzodererGLPlugin::~RenzodererGLPlugin(void)
{
}

const char* RenzodererGLPlugin::getName() const {
	return PLUGIN_RENZODERER_GL;
}

void RenzodererGLPlugin::install() {
	// start OpenGL render system
	renderGL = new RenderSystemGL;
	Renzoderer::instance()->addRenderSystem(renderGL);
	Renzoderer::instance()->setActiveRenderSystem(renderGL);	

	textureManagerGL = new TextureManagerGL;
	Renzoderer::instance()->setTextureManager(textureManagerGL);
}

void RenzodererGLPlugin::uninstall() {
	delete renderGL;
	delete textureManagerGL;
}

void RenzodererGLPlugin::begin() {
}

void RenzodererGLPlugin::end() {
}

}
